#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "mystack.h"
#include "stack.cpp"
using namespace std;

int main()
{
	stack<int>* s = new stack<int>();
	try{

	s->stack_push(123);
	s->stack_push(15);
	cout<<s->stack_pop()<<endl;
	cout<<s->stack_pop()<<endl;
	cout<<s->stack_pop()<<endl;
	}
	catch (exception& e)
	{
		cout<<e.what()<<endl;
	}
	system("PAUSE");
	return 0;
}